package com.vframework.system.role.mapper;

import java.util.List;
import java.util.Map;

import com.vframework.base.mapper.BaseMapper;
import com.vframework.system.menu.model.MenuBean;
import com.vframework.system.role.model.RoleBean;

public interface RoleMapper extends BaseMapper {
    
    public Integer getCount(Map<String, Object> paramMap);
    
    public List<RoleBean> getRoleList(Map<String, Object> paramMap);
    
    public RoleBean getRoleById(String roleId);
    
    public List<MenuBean> getRoleMenuForAddList(String orgId);
    
    public List<MenuBean> getMenuByRole(Map<String, Object> paramMap);
    
    public int insertRole(RoleBean roleBean);
    
    public int insertRoleMenu(List<MenuBean> list);
    
    public int updateRole(RoleBean roleBean);
    
    public int deleteRoleMenu(String... roleIds);
    
    public int deleteRole(Map<String, Object> paramMap);
    
    public int deleteUserRole(Map<String, Object> paramMap);
}
